Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.Configuration
Imports System.Data
Imports System.Linq
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Xml.Linq
Imports facebook
Imports facebook.web
Namespace FBMLSample
	Partial Public Class FBMLMaster
		Inherits facebook.web.CanvasFBMLMasterPage
		Protected selected As String = String.Empty
		Public Sub SetSelectedTab(ByVal page As String)
			selected = page
		End Sub
		Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

			If (Not String.IsNullOrEmpty(Request.Params("fb_sig_in_profile_tab"))) Then
				header.Visible = False
				css.Text = FBMLControlRenderer.RenderFBML("~/controls/FBMLCSS.ascx")
			Else
				css.Text = String.Format("<link rel=""stylesheet"" type=""text/css"" href=""{0}css/page.css?id={1}"" />", callback, cssVersion)
				js.Text = FBMLControlRenderer.RenderFBML("~/controls/FBMLJS.ascx")
				' js.Text = string.Format("<script src=\"{0}js/base.js?id={1}\" />", callback, jsVersion);

			End If
		End Sub
	End Class
End Namespace
